﻿using System;
using System.Data;

namespace MyApp.IService
{
    public interface IBaseService<TEntity> where TEntity : class, new()
    {
        public int Insert(TEntity entity);

        public int Delete(TEntity entity);

        public int Update(TEntity entity);
        public TEntity QuerySingleByPK(string PK);
        public DataTable GetDataTable(string sql);

        public int ExecuteCommand(string sql);
    }
}
